replace
Calls replace with a null tag.
Replace an existing fragment that was added to a container. This is essentially the same as calling remove for all currently added fragments that were added with the same containerViewId and then add with the same arguments given here.
Return
Returns the same FragmentTransaction instance.
Parameters
Identifier of the container whose fragment(s) are to be replaced.
The new fragment to place in the container, created via the FragmentManager's FragmentFactory.
Optional arguments to be set on the fragment.
Optional tag name for the fragment, to later retrieve the fragment with FragmentManager.findFragmentByTag(String).
Replace an existing fragment that was added to a container. This is essentially the same as calling remove for all currently added fragments that were added with the same containerViewId and then add with the same arguments given here.
Return
Returns the same FragmentTransaction instance.
Parameters
Identifier of the container whose fragment(s) are to be replaced.
The new fragment to place in the container.
Optional tag name for the fragment, to later retrieve the fragment with FragmentManager.findFragmentByTag(String).